﻿namespace WebApplication_JWTDemo.Common
{
    public class JwtSettings
    {
        /// <summary>
        /// 私钥
        /// </summary>
        public string SigningKey { get; set; }
        /// <summary>
        /// 发布者
        /// </summary>
        public string Issuer { get; set; }
        /// <summary>
        /// 接受者
        /// </summary>
        public string Audience { get; set; }
        /// <summary>
        /// 默认30分钟
        /// </summary>
        public int AccessTokenExpirationMinutes { get; set; } = 30;
        /// <summary>
        /// 默认7天
        /// </summary>
        public int RefreshTokenExpirationDays { get; set; } = 7;
    }
}
